package cn.middle.basic.service;

import java.util.List;

import com.middle.common.base.service.BaseService;
import com.middle.common.result.Page;

import cn.middle.basic.entity.SysMenu;
import cn.middle.basic.vo.MenuVo;

public interface SysMenuService extends BaseService<SysMenu> {
	
	
	public Page<SysMenu> list(int page,int pageSize,String name);
	/**
	 * 获取菜单信息
	 * 
	 * @param userId
	 * @return
	 */
	public List<SysMenu> selectMenuByUserId(Long userId);

	/**
	 * 获取权限信息
	 * 
	 * @param userId
	 * @return
	 */
	public List<String> selectAuthorisationCodeByUserId(Long userId);
	
	public List<SysMenu> selectByPid(Long pId);
	
	public List<MenuVo> listVo(String name);
	
	public List<SysMenu> list(String name);
	
	public List<SysMenu> menuTypeList(Byte menuType);
	
	public void deleteParentId(Long parenntId);
	
	/**
	 * 删除菜单
	 * @param id
	 */
	public void deleteBySysId(Long id);

}
